using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Rotation : MonoBehaviour
{
    public float rotationSpeed = 50f;
    
    void Update()
    {
        // 获取UI组件的RectTransform
        RectTransform rectTransform = GetComponent<RectTransform>();
        
        // 沿着Z轴旋转UI
        rectTransform.Rotate(0, 0, -rotationSpeed * Time.deltaTime);
    }
}
